package com.example.demo.demos.web.test;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping("/calc")
@Controller
public class Calc {

    @ResponseBody
    @RequestMapping("/sum")
    public int  sum(Integer num1,Integer num2){
        return num1+num2;
    }
}
